package com.xmim.core.session;

import com.xmim.core.exception.SessionrException;

public interface Session {
    /**
     * 写入数据并完成
     *
     * @param pkg
     */
    Session writeAndFlush(Object pkg);


    /**
     * 关闭会话
     */
    Session close() throws SessionrException;
}
